package com.party.tool;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class Time {
	public static String getTime(){
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String time=sdf.format(new Date());
		return time;
	}
	public static String getNoFormatTime(){
		SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmsshh");
		String time=sdf.format(new Date());
		return time;
	}
	public static String Ramdom()
	{
		 Random random = new Random();
	     int s = random.nextInt(10000)%(10000-100+1) + 100;
	     String r=String.valueOf(s);
	     return r;
	}
	
}